projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4b661d
)
Small fix in `python-shell-send-defun' (#69 thanks mafm-git!)
author
Fabián Ezequiel Gallina
<fgallina@cuca>
Thu, 17 May 2012 03:03:40 +0000
(
00:03
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Thu, 17 May 2012 03:03:40 +0000
(
00:03
-0300)
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 75b9f0c087ea558fdf9d6b7373817700e7b75153..4671d9f0f1aa66a06a658e5f93fbf7f84c7a65a4 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-1635,10
+1635,12
@@
When argument ARG is non-nil sends the innermost defun."
(python-shell-send-region
(progn
(or (python-beginning-of-defun-function)
- (progn (beginning-of-line) (point-marker))))
+ (beginning-of-line))
+ (point-marker))
(progn
(or (python-end-of-defun-function)
- (progn (end-of-line) (point-marker)))))))
+ (end-of-line))
+ (point-marker)))))
(defun python-shell-send-file (file-name &optional process temp-file-name)
"Send FILE-NAME to inferior Python PROCESS.